public class Test2 {
    public static void main(String[] args) {
        MyArraylist3 myArraylist3 = new MyArraylist3();
        myArraylist3.add(5);
        myArraylist3.add(6);
        myArraylist3.add(7);
        myArraylist3.add(8);
        myArraylist3.display();
        System.out.println(myArraylist3.isFull());
        System.out.println(myArraylist3.contains(5));
        System.out.println(myArraylist3.indexOf(5));
        System.out.println(myArraylist3.size());
//        myArraylist3.clear();
        myArraylist3.set(0,9);
        myArraylist3.display();
        System.out.println(myArraylist3.get(0));
        myArraylist3.add(4,1);
        myArraylist3.display();
        myArraylist3.remove(6);
        myArraylist3.display();
    }
}
